<script setup lang="ts">
defineProps({
  modelValue: {
    type: Number,
    default: 0
  }
})
const emit = defineEmits<{
  (e: 'update:modelValue', val: number): void
}>()
const changeMoney = () => {
  emit('update:modelValue', 20)
}
</script>
<template>
  <div style="border: 2px solid #ccc; padding: 20px">
    jerry子组件 - {{ modelValue }} <button @click="changeMoney">改值</button>
  </div>
</template>



<style scoped>
</style>